package com.gf.framework.rpcdemo.server.service.impl;

import com.gf.framework.rpcdemo.api.dto.Student;
import com.gf.framework.rpcdemo.api.dubboservice.StudentService;
import lombok.extern.slf4j.Slf4j;
import org.apache.dubbo.config.annotation.DubboService;

/**
 * @author gaofei
 * @date 2022/5/25 19:52
 */
@Slf4j
@DubboService
public class DubboStudentServiceImpl implements StudentService {
    @Override
    public Boolean add(Integer id, Student student) {
        log.info(String.format("id:%d student:%s", id, student.toString()));
        return true;
    }
}
